﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web;

namespace FisheryPlatform.Bussiness.FileStore
{
    public enum ExistAction
    {
        Overwrite,
        Exception,
        Rename
    }

    public enum FileNameMethod
    {
        Client,
        Guid,
        Custom
    }

    public class FileUploadConstants
    {
        public const string ServiceType_Post = "post";
        public const string ServiceType_Product = "product";
        public const string ServiceType_ContactInfo = "contactinfo";

        public const string MimeItemKey_Attachment = "attachment";
        public const string MimeItemKey_Image = "image";
    }

    public interface IFileUploadProvider
    {
        void Save();
        void Delete();
        string Read(string filePath);
        bool Read(string fileName, string filePath, HttpResponse response);
        string FileServerRootPath { get; set; }
        bool MoveTo(string destFileName);
        bool Move(string oldFileName, string newFileName);
    }
}
